![]() |
YNQ
YNQ-1.5.0
|
Macros | |
| #define | SYMutex pthread_mutex_t |
| #define | syMutexTake(_m) syMutexTakeDebug(_m, SY_LOG_FILE, SY_LOG_LINE) |
Functions | |
| void | syMutexCreate (SYMutex *_m) |
| void | syMutexDelete (SYMutex *_m) |
| void | syMutexTakeDebug (SYMutex *_m, const NQ_CHAR *text, const NQ_UINT line) |
| void | syMutexGive (SYMutex *_m) |
| #define SYMutex pthread_mutex_t |
| #define syMutexTake | ( | _m | ) | syMutexTakeDebug(_m, SY_LOG_FILE, SY_LOG_LINE) |
| void syMutexCreate | ( | SYMutex * | _m | ) |
Create a mutual exception semaphore
| _m | Pointer to a semaphore variable to create |
| void syMutexDelete | ( | SYMutex * | _m | ) |
Dispose a mutual exception semaphore
| _m | Pointer to a semaphore variable to dispose |
Lock a resource protected by a mutex
| _m | Pointer to a mutex semaphore |
| text | File name for debug |
| line | Line number for drbug |
| void syMutexGive | ( | SYMutex * | _m | ) |
Unlock a resource protected by a mutex
| _m | Pointer to a mutex semaphore |